package com.gitee.ricesugar.service;

import com.gitee.ricesugar.controller.request.BaseRequest;
import com.gitee.ricesugar.entity.Book;
import com.gitee.ricesugar.entity.BookRecord;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IBookService {

    void add(Book obj);

    PageInfo<Book> page(BaseRequest baseRequest);

    PageInfo<BookRecord> record(BaseRequest baseRequest);

    Object getByISBN(String isbn);

    void update(Book obj);

    void deleteByISBN(String isbn);

    void deleteRecordById(Integer id);

    void borrow(String username, List<Book> obj);

    void returnBook(Integer id);
}
